#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
void test1()
{
	LTNode* plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPushBack(plist, 5);
	Listprint(plist);
	
	ListPopBack(plist);
	ListPopBack(plist);
	Listprint(plist);
	
	ListPopFront(plist);
	ListPopFront(plist);
	Listprint(plist);
	ListDestroy(plist);
	plist = NULL;
	Listprint(plist);
}
void test2()
{
	LTNode* plist = ListInit();
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	Listprint(plist);
	ListPopFront(plist);
	Listprint(plist);
}
void test3()
{
	LTNode* plist = ListInit();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	Listprint(plist);
	/*LTNode* pos = ListFind(plist, 2);
	if (pos)
	{
		ListErase(pos);
	}*/
	
}
int main()
{
	test1();
	//test2();
	//test3();
	return 0;
}